import request from '/@/utils/request';

export const getInStorage = (query: any)=>{
    return request({
        url:'/storage/in?page='+query.pagenum+'&limit='+query.pagesize+"&searchText="+query.query,
        method:"get"
    })
}

export const addInStorage = (query: any)=>{
    return request({
        url:'/storage/in',
        method: "post",
        data: query
    })
}

export const upInStorage =  (query: any)=>{
    return request({
        url:'/storage/in',
        method: "put",
        data: query
    })
}

export const delInStorage =  (query: any)=>{
    return request({
        url:'/storage/in',
        method: "delete",
        data: query
    })
}